<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-total_class_hour" class="form-control" value='{$class_id}' name="row[class_id]" type="hidden">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-multiple="true"
                   data-field="nickname" data-params='{"custom[id]":["NOTIN","{$user_ids}"]}'
                   class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">学生入班时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                   data-use-current="true" name="row[r_time]" placeholder="此时间会影响学生扣取课时多少" type="text"
                   value="{:date('Y-m-d')}">
        </div>
    </div>
    {if $class_info['class_discount']}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">班级优惠:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">

                <label for="row[class_discount]-0"><input id="row[class_discount]-0"
                                                          name="row[class_discount]" type="radio" value="1"
                                                          checked/> 享受优惠</label>
                <label for="row[class_discount]-1"><input id="row[class_discount]-1"
                                                          name="row[class_discount]" type="radio" value="0"
                /> 不享受优惠</label>
            </div>

        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">请假课程:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id" data-source="school_class_subject_schedule/index"
                   data-field="class_subject_id" class="form-control selectpage" name="row[subject_schedule_id]"
                   data-multiple="true" data-params='{"custom[class_id]":"{$class_id}","custom[status]":"1"}'
                   type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
